* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    color: white;
    text-decoration: none;
}

img {
    width: 100%;
    vertical-align: middle;
}

.box {
    width: 1110px;
    height: 247px;
    margin: 20px auto;
}

.box li {
    position: relative;
    float: left;
    width: 350px;
    height: 247px;
    margin-right: 30px;
    overflow: hidden;
}

.box li:last-child {
    margin-right: 0;
}

.box li .pic::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: all 0.5s;
}

.box li .pic:hover::after {
    opacity: 1;
}

.box li .pic:hover .title {
    transform: translateY(-40%);
}

.box li .title {
    justify-content: space-between;
    flex-direction: column;
    display: flex;
    height: 150px;
    transition: all 0.5s;
    line-height: 30px;
    color: white;
    width: 260px;
    position: absolute;
    top: 150px;
    left: 30px;
    font-size: 20px;
}

.box li .title a {
    display: block;
    margin-bottom: 10px;
}

.box li .title p {
    font-size: 14px;
}